﻿namespace ybx_caller
{
    public class HealthManager
    {
        private static readonly HealthManager _instance = new HealthManager();
        public static HealthManager Instance => _instance;

        public HealthState CurrentHealth { get; private set; }

        static HealthManager() { }

        private HealthManager()
        {
            // 默认状态可以根据实际情况初始化
            CurrentHealth = HealthState.Up;
        }

        public void SetHealth(HealthState state)
        {
            CurrentHealth = state;
        }
    }

}
